/* Tian OS canvas style */
.txOS {
    z-index: 0;
    overflow: hidden;
    position: relative;
}

/* disable select for widget */
.txWidgetNoSelect {
    -webkit-touch-callout: none;
      -webkit-user-select: none;
       -khtml-user-select: none;
         -moz-user-select: none;
          -ms-user-select: none;
           -o-user-select: none;
              user-select: none;
}

/* Tian title bar */
.txWidgetTitleBar {
    position: absolute;
    top: 2px;
    left: 64px;
    right: 80px;
    height: 32px;
    white-space: nowrap;
    overflow: hidden;
    line-height: 30px;
}
.txWidgetTitleBarWelcome {
    color: blue;
    font-size: 16px;
    font-weight: bold;
}
.txWidgetTitleBarAccount {
    color: blue;
    font-size: 16px;
    text-decoration: underline;
    cursor: pointer;
}
.txWidgetTitleBarNotification {
    color: blue;
    font-size: 14px;
    margin-left: 10px;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
}

/* Tian taskbar */
.txWidgetTaskbar {
    position: absolute;
    bottom: 16px;
    left: 80px;
    right: 80px;
    height: 36px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

/* Tian main panel */
.txWidgetMainPanel {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background-image: url(img/main_icon.png);
}
.txWidgetMainPanelContent {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    background-color: white;
    overflow: auto;
    border-radius: 0 0 5px 5px;
	-moz-border-radius: 0 0 5px 5px;
	-webkit-border-radius: 0 0 5px 5px;
    border: none;
}

/* Tian embeded application */
.txApp {
    float: left;
    text-align: left;
    margin: 0px;
    padding: 5px;
    width: 160px;
    height: 32px;
    cursor: pointer;
    overflow: hidden;
}
.txApp > img {
    width: 32px;
    height: 32px;
    margin: 0;
    float: left;
    border: 0 none;
}
.txApp > p {
    height: 32px;
    font-size: 14px;
    padding-left: 5px;
    margin: 0;
    display: table-cell;
    vertical-align: middle;
}
div.txApp:hover {
    background-color: #e5ecf9;
}

/* Tian Windowing System */
.txWindow, .txWindowActive {
	position: absolute;
	background-color: white;
	border-radius: 9px 9px 0 0;
	-moz-border-radius: 9px 9px 0 0;
	-webkit-border-radius: 9px 9px 0 0;
}
.txWindow {
	border: solid 3px #BBBBBB;
}
.txWindowActive {
    border: solid 3px #6BADF6;
}
.txWinTitle {
	position: relative;
	margin: 0px;
	border-radius: 5px 5px 0 0;
	-moz-border-radius: 5px 5px 0 0;
	-webkit-border-radius: 5px 5px 0 0;
	height: 24px;
	text-align: center;
}
.txWindow .txWinTitle {
    background-color: #BBBBBB;
	border-bottom: solid 3px #BBBBBB;
}
.txWindowActive .txWinTitle {
    background-color: #6BADF6;
	border-bottom: solid 3px #6BADF6;
}
.txWinIconImage {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 24px;
    height: 24px;
    cursor: nw-resize;
    border-radius: 5px 0 0 0;
	-moz-border-radius: 5px 0 0 0;
	-webkit-border-radius: 5px 0 0 0;
}
.txWinTitleText {
    position: absolute;
    top: 0px;
    left: 25px;
    right: 72px;
    width: auto;
    height: 20px;
    font-size: 14px;
    padding-top: 4px;
	overflow: hidden;
	white-space: nowrap;
	cursor: move;
}
.txWinCloseBox, .txWinMaxBox, .txWinMinBox {
    position: absolute;
    top: 0px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    background-image: url(img/win_icons.png);
    background-repeat: no-repeat;
}
.txWinCloseBox {
    right: 0px;
    background-position: -48px 0px;
}
.txWinMaxBox {
    right: 24px;
    background-position: -24px 0px;
}
.txWinMinBox {
    right: 48px;
    background-position: 0px 0px;
}
.txWinLoading {
    position: absolute;
    top: 0px;
    right: 72px;
    width: 24px;
    height: 24px;
    background-image: url(img/win_loading.gif);
    background-position: center;
    background-repeat: no-repeat;
    visibility: hidden;
}
.txWinContent {
    position:relative;
	background-color: #fff;
	padding: 0px;
	overflow: hidden;
	border-radius: 0 0 5px 5px;
	-moz-border-radius: 0 0 5px 5px;
	-webkit-border-radius: 0 0 5px 5px;
}
.txWinContentSafari {
    position:relative;
	background-color: #fff;
	padding: 0px;
	overflow: auto;
    -webkit-overflow-scrolling: touch;
	border-radius: 0 0 5px 5px;
	-webkit-border-radius: 0 0 5px 5px;
}
.txWinFrame {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0 0 5px 5px;
	-moz-border-radius: 0 0 5px 5px;
	-webkit-border-radius: 0 0 5px 5px;
    border: none;
}
.txWinTaskBarIcon, .txWinTaskBarIconActive{
	height:32px;
	margin-right:5px;
	display: inline-block;
	vertical-align: middle;
	cursor:pointer;
	padding:0px;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
.txWinTaskBarIcon{
	border: 2px solid #BBBBBB;
	background-color: transparent;
}
div.txWinTaskBarIcon:hover{
	border: 2px solid #6BADF6;
    background-color: white;
}
.txWinTaskBarIconActive{
	border: 2px solid #6BADF6;
	background-color: #6BADF6;
}
.txWinTaskBarIcon img, .txWinTaskBarIconActive img{
	width: 32px;
	height: 32px;
	margin: 0px 2px -3px 2px;
}
.txWinTaskBarIcon span, .txWinTaskBarIconActive span {
    display: none;
}

